<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>Ihre Ergebnisse</title>
		<link href="css/styles.css" rel="stylesheet" type="text/css" media="all" />
	</head>
<body>
<p style="color:white;">
<?php
if ((isset($_POST['submit1']))) {
  session_start();
  
  error_reporting(E_ALL);
  ini_set('display_errors', '1');
  ini_set('default_socket_timeout', 120);
  ini_set('soap.wsdl_cache_enabled', '0');
  ini_set('soap.wsdl_cache_ttl', '0');
  
  $_SESSION['abgabeort'] = $_POST['abgabeort'];
  $_SESSION['abholort'] = $_POST['abholort'];
  
  //Zu TESTZWECKEN: DATUM FIX
  //$_SESSION['abholdatum'] = $_POST['abholdatum'];
  $_SESSION['abholdatum'] = '2012-08-02';
  
  $_SESSION['abgabedatum'] = $_POST['abgabedatum'];
  $_SESSION['abholzeit'] = $_POST['abholzeit'];
  $_SESSION['abgabezeit'] = $_POST['abgabezeit'];
  echo $_SESSION['abholort'];
  echo $_SESSION['abholdatum'];
  
  $webService  = 'http://localhost:8080/axis2/services/SpeedcarsService?wsdl';

  $soapClient = new SoapClient($webService, array('trace' => 1, 'connection_timeout' => 120));

  //$ergebnis = $soapClient->testMitPara(array('parameter'=>'teest'));
  //echo $ergebnis->return;

  $carSearch = array('datum'=> $_SESSION['abholdatum'], 
                       'ort'=> $_SESSION['abholort']);
  $availableCars = $soapClient->getMietwagen($carSearch);

  //var_dump($soapClient->__getFunctions());
  //var_dump($soapClient->__getLastRequest());
  //var_dump($soapClient->__getLastResponse());

  // Ausgabe
  //var_dump($result); 
}?> 
</p>

	<div id="head">
	 <div id="head_cen">
	  <div id="head_sup" class="head_pad">
	    <h1 class="logo"><a href="index.php">M CUBE</a></h1>
	    <ul>
	     <li><a href="index.php">Home</a></li>
	     <li><a href="about.php">ABOUT</a></li>
	     <li><a href="services.php">SERVICES</a></li>
	     <li><a href="contact.php">CONTACT</a></li>
	   </ul>  
	  </div>
	 </div>
	</div>
	<div id="stat"> 
		<ul>
			<li>Buchungs-Status: <img alt="" src="images/green.jpg"></li>
	   		<li><img alt="" src="images/orange.jpg"></li>
	   		<li><img alt="" src="images/red.jpg"></li>
	   	</ul>
	</div>
	<div id="content">
	 <div id="content_cen">
	  <div id="content_sup" class="head_pad">
		 <div id="welcom_pan">
		    <h2><span>Ihre</span>Suchergebnisse</h2>  
		    <p>Hier wird später die Liste der Suchergebnisse angezeigt...</p>
		     <a class="buchen" href="kundendaten.php"><span>Fahrzeug buchen</span></a>
		  </div>	  
	  </div>
	 </div>
	</div>
	<div id="foot">
	 <div id="foot_cen">
	 <h6><a href="index.php">mcube</a></h6>
	 <ul>
	     <li><a href="index.php">HOME</a></li>
	     <li class="space">|</li>
	     <li><a href="about.php">ABOUT</a></li>
	     <li class="space">|</li>
	     <li><a href="services.php">SERVICES</a></li>
	     <li class="space">|</li>
	     <li><a class="active" href="contact.php">CONTACT</a></li>
	     <li class="space">|</li>
	  	 <li><a href="">PARTNER</a></li>
	   </ul>
	    <p>© L.Brokmann, J.Pozduga, S.Schmidt</p>
	 </div>
	</div>
</body>
</html>